#!/bin/env python
#coding=utf-8
import os,sys
import json

server_path = str(sys.argv[1])
# server_path = '/tmp'
err_message = 'path not exist'

def main():
    if not os.path.exists(server_path): return err_message
    server_status = [{'{#PATH}':server_path}]
    return json.dumps({'data':server_status}, sort_keys=True, indent=4)

if __name__ == '__main__':
    code = main()
    print(code)